package patterns.decorator;

import java.time.LocalDateTime;

public class TimestampLogger extends LoggerDecorator {
    public TimestampLogger(SystemLogger decoratedLogger) {
        super(decoratedLogger);
    }

    @Override
    public void log(String message) {
        String timestamp = LocalDateTime.now().toString();
        super.log(timestamp + " - " + message);
    }
}
